# 设置C++标准
project(ping_service_test CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

file(GLOB_RECURSE SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/*.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/*.cc")

file(GLOB_RECURSE HEADER 
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
"${CMAKE_CURRENT_SOURCE_DIR}/*.hpp")
message(STATUS "config test source: ${SOURCES}")
message(STATUS "config test header: ${HEADER}")

add_executable(${PROJECT_NAME} ${SOURCES})
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(${PROJECT_NAME} PRIVATE 
    ${CMAKE_SOURCE_DIR}/logger
    ${CMAKE_SOURCE_DIR}/config
    ${CMAKE_SOURCE_DIR}/common_component/include
)

target_link_libraries(${PROJECT_NAME} PUBLIC  
    services 
    config 
    logger 
    gateway
    common_component
    ${Boost_LIBRARIES} 
    ${PROTOBUF_LIBRARY} 
    
)